import { uploadType } from '@/utils/util'

export const detailConfig: any = {
	label: '运营记录详情',
	inline: false,
	showBtn: false,
	labelPosition: 'left',
	labelWidth: '200px',
	column: [
		//-------------------- 运营记录 ----------------
		{
			label: '机构运营补贴花名册',
			prop: 'table',
			type: 'uplaod',
			labelPosition: 'top',
			showFileList: false,
			limit: 4,
			multiple: true,
			span: 24,
		},
	],
}
const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{ label: '姓名', prop: 'staffName', type: 'uplaod' },
		{ label: '身份证号', prop: 'idCard' ,width:200},
		{
			label: '合同',
			prop: 'contractFiles',
			showFileList: true,
			fileType: uploadType.fileMetaType,
			listType: 'text',
			custome: 'file',
			width:300
		},
		{ label: '员工类型', prop: 'careerTypeLabel' },
		{
			label: '资质证书',
			prop: 'certFiles',
			showFileList: true,
			fileType: uploadType.fileMetaType,
			listType: 'text',
			custome: 'file',
			width:300
		},
	],
}
export const formConfig = {
	label: '数据管理设置',
	prop: 'base0',
	inline: false,
	showBtn: true,
	labelPosition: 'left',
	column: detailConfig.column,
}
export const baseConfig: any = {
	pageName: '五类老人入住养老机构补贴花名册',
	addLabel: '添加',
	dictcodes: [],
	rowKey: 'id',
	tipLabel: 'batch',
	api: {
		index: 'dpOrgOperateStaff_page',
		// edit: 'view_dpOperateRecord_edit',
		// delete: 'view_dpOperateRecord_del',
	},
	auth: {
		index: 'view_dpOrgOperateStaff_page',
		// edit: 'view_dpOperateRecord_edit',
		// delete: 'view_dpOperateRecord_del',
	},
	menuBtn: [
		{
			icon: 'editor',
			label: '查看详情',
			type: 'primary',
			operate: 'detail',
			auth: '',
			text: true,
			show: true,
		},
	],
	dialogConfig: {
		width: '65%',
	},
	tableConfig,
	formConfig,
	detailConfig,
}
